<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var reg = new RegExp("[1-9]+");
			var str = "0";
			function testStr(str){
				var result = reg.test(str);
				console.log(result);
			}
			testStr(str);
		</script>
	</body>
</html>